package com.han.bom.utilities;

import java.util.ArrayList;

import com.han.bom.Exam;

public class ExamCategory {
    	
	private Exam exam;
	private String categories="";
	
	public ExamCategory(Exam exam, ArrayList<String> categories) {
		super();
		this.exam = exam;
		for(String c: categories){
			this.categories = this.categories+" "+c;
		}
	}

	public String getCategories() {
		return categories;
	}

	public void setCategories(String categories) {
		this.categories = categories;
	}

	public Exam getExam() {
		return exam;
	}

	public void setExam(Exam exam) {
		this.exam = exam;
	}

	public int getItemCount(){
		return this.exam.getQuestions().size();
	}

	public double getPassing(){
		return this.exam.getPassingPercent();
	}

	
	public long getDuration(){
		return this.exam.getDuration();
		
	}

	public String getExamName(){
		return this.exam.getExamName();
	}

	public String getExamID(){
		return this.exam.getExamID();
	}
}
